package cn.itcast.wanxinp2p.account.exception;

import cn.itcast.wanxinp2p.common.exception.ErrorCode;

public enum AccountErrorCode implements ErrorCode {
    E_130101(130101, "用户名已存在"),
    E_130104(130104, "用户未注册"),
    E_130105(130105, "用户名或密码错误"),
    E_140141(140141, "注册失败"),
    E_140151(140151, "获取短信验证码失败"),
    E_140152(140152, "验证码错误");
    private int code;
    private String desc;

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    private AccountErrorCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}